all: main.pdf 

main.pdf: main.tex
	xelatex main
	bibtex main
	xelatex main
	xelatex main

clean:
	rm -f *.aux *.log *.pdf \
	*.toc *.snm *.nav *.out \
	*.thm *.bbl *.ps *.dvi *.blg \
	*.bcf *.xml

.PHONY: all clean
